package trycatchfinally;

public class Test {
    public static void main(String[] args) {
        System.out.println(show());
    }

    public static int show() {
        int a = 0;
        try {
            a = 20;
            a = a / 0;
            return a;
        } catch (Exception e) {
            a = 30;
            e.printStackTrace();
            return a;
        } finally {
            a = 40;
            System.out.println("a:" + a);
        }
    }
}
